package com.huage_07.lesson_05;

import java.io.*;

public class CopyJavaFile {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("class1\\src\\com\\huage_07\\lesson_04\\Student.java"));
        PrintWriter pw = new PrintWriter(new FileWriter("class1\\src\\com\\huage_07\\lesson_05\\Student.txt"),true);

//        byte[] bytes = new byte[1024];
//        int len;
//        while ((len=bis.read(bytes))!=-1){
////            pw.write(new String(bytes,0,len));
//            pw.println(new String(bytes,0,len));
//        }

        String line;
        while ((line=br.readLine())!=null){
            pw.println(line);
        }

        br.close();
        pw.close();
    }
}
